﻿Public Class Piggyback
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Select Case Roles.GetRolesForUser()(0)
            Case "Employee"
                Response.Redirect("/User_View/EmployeeView/EmployeeHome.aspx?=")
            Case "Administrator"
                Response.Redirect("/User_View/AdminView/AdminHome.aspx?=")
            Case "Instructor"
                Response.Redirect("/User_View/InstructorView/InstructorHome.aspx?=")
        End Select
    End Sub

End Class